/**
 * 注册 routes 目录下所有的路由
 */

const router = require('koa-router')()

const routeFiles = [
    './job',
    './role',
]

for (let file of routeFiles) {
    const subRouter = require(file)
    router.use(subRouter.routes())
    router.use(subRouter.allowedMethods())
}

module.exports = router
